<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <title>更新电影</title>
</head>
<body>
<div class="container">
    <jsp:include page="inc.jsp"/>
    <div style="width: 800px; margin: auto">
        <form class="form-horizontal" action="" method="post">
            <!--input一定要放到form标签中-->
            <input type="hidden" name="id" value="${movie.id}">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">电影名称</label>
                <div class="col-sm-10">
                    <input type="text" name="name" value="${movie.name}" class="form-control" id="inputEmail3" placeholder="输入电影名称">
                </div>
            </div>
            <div class="form-group">
                <label for="mtype" class="col-sm-2 control-label">电影类型</label>
                <div class="col-sm-10">
                    <input type="text" name="type" value="${movie.type}" class="form-control" id="mtype" placeholder="输入电影类型">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">主演</label>
                <div class="col-sm-10">
                    <input type="text" name="actor" value="${movie.actor}" class="form-control" placeholder="主演">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">导演</label>
                <div class="col-sm-10">
                    <input type="text" name="director" value="${movie.director}" class="form-control" placeholder="输入导演">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">评分</label>
                <div class="col-sm-10">
                    <input type="number" name="score" step="0.1" class="form-control" value="${movie.score}" placeholder="评分">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">更新电影</button>
                    <button type="reset" class="btn btn-default">重置信息</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
